﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using IDAL;
using Factory;

namespace BLL
{
    public class B_JobIntention : IJobIntention
    {
        public void Add(JobIntention obj)
        {
            CreateFactory.GetJobIntention().Add(obj);
        }

        public void Delete(int id)
        {
            CreateFactory.GetJobIntention().Delete(id);
        }

        public JobIntention FindById(int id)
        {
            return CreateFactory.GetJobIntention().FindById(id);
        }

        public Param_JobIntention FindByTemplateID(int id)
        {
            return CreateFactory.GetJobIntention().FindByTemplateID(id);
        }

        public List<JobIntention> GetAll()
        {
            return CreateFactory.GetJobIntention().GetAll();
        }

        public void Update(int id, JobIntention obj)
        {
            CreateFactory.GetJobIntention().Update(id, obj);
        }
    }
}
